-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(test): run tests with pytest
8.x and 7.x
#16
Conversation
The recently released `pytest` 8.0 brings some breaking changes, deprecations and new features. For the future development it'll be nice to test the plugin with 7.x and 8.x versions of `pytest` (while not may projects has been ported to 8.x ;-) Here is the changes to the `hatch` configuration for this purpose…
Ping @xymaxim ;-) |
@zaufi Oh, wow, the new pytest release, and the test are passing! Wasn't aware of the changes and took a quick look at the changelog.
Hmm, for some reason, I can’t get pytest to produce a colored diff output for a simple test. Anyway, it’s worth taking a closer look when implementing issue #13 for consistency.
This could affect pattern files, so our users potentially need to re-store them after switching to 8.x.
We don’t use such hook wrappers yet, so just note it for the future.
I plan on messing with this feature this weekend (or next week), if you’re not ahead of me. Right now we have the flat testing layout in tests, and it would be nice to test more tricky cases—haven't figured out how the new changes might affect it. |
My attention was caught by
Also, I wanted to add |
Sorry to be late to respond, but I was busy these days. Yeah, it sounds reasonable for me to test two versions for now—already saw issues with migrating to 8.x on GitHub—to support not yet ported projects or projects with pinned dependencies.
Looks good to me, and like how Hatch matrices fit here (no need for tox). |
This would definitely be nice to use! Sometimes the full output may help to localize/preview non-matched lines in context faster, while other test noise is just a distraction. |
Changes in this PR
The recently released
pytest
8.0 brings some breaking changes, deprecations, and new features. For future development, it'll be nice to test the plugin with 7.x and 8.x versions ofpytest
(while not many projects have been ported to 8.x ;-)Here are the changes to the
hatch
configuration for this purpose…